/*======================================================================*\
|| #################################################################### ||
|| # vBMail: Professional mailing list management		      # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright 2013 DragonByte Technologies 			      # ||
|| # http://www.dragonbyte-tech.com - http://www.dragonbyte-tech.net  # ||
|| # All Rights Reserved.                                             # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------------------------------------------------------- # ||
|| # http://www.vbulletin.org/forum/showthread.php?t=           # ||
|| #################################################################### ||
\*======================================================================*/

/*======================================================================*\
|| Table of contents                                                    ||
||  1. License                                                          ||
||  2. Requirements                                                     ||
||  3. First Time Installation / Upgrade 	                        ||
|| 4. Configuring vBMail	                                        ||
\*======================================================================*/


/*======================================================================*\
|| 1. License                                                           ||
\*======================================================================*/

vBMail is released under the All Rights Reserved licence.
You may not redistribute the package in whole or significant part.
All copyright notices must remain unchanged and visible.
You may provide phrase .xml files for other languages on any site,
but you may not provide the full product .xml file - only the phrases.


/*======================================================================*\
|| 2. Requirements                                                      ||
\*======================================================================*/

vBMail requires at least vBulletin 4.0.2 (vB4) or vBulletin 3.8.x (vB3)
It will not function correctly in vBulletin 4.0.1 because of a bug in that version.

vBMail has been tested on MySQL 5.0.x and above, and may not function
correctly on MySQL 4.1. Please contact your web host for an upgrade
if you are still running MySQL 4.1 to benefit from the features
and future support newer MySQL versions bring.


/*======================================================================*\
|| 3. First Time Installation / Upgrade                                 ||
\*======================================================================*/

1. Upload all files from the "upload" folder to your forums directory.

2. Import the product-dbtech_vbmail.xml file from the "XML" folder 
at AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product

3. Open ./includes/class_mail.php and find:
		$this->smtpSocket = fsockopen(($this->secure == 'ssl' ? 'ssl://' : 'tcp://') . $this->smtpHost, $this->smtpPort, $errno, $errstr, 30);

Add above:
		static $hook_code = false;
		if ($hook_code === false)
		{
			$hook_code = vBulletinHook::fetch_hook('dbtech_vbmail_smtp_exec_send');
		}
		if ($hook_code)
		{
			eval($hook_code);
		}


4. That's it! You can start editing settings and setting usergroup permissions.


/*======================================================================*\
|| 4. Configuring vBMail	                                        ||
\*======================================================================*/

1. Usergroup Permissions are handled on a per-mailinglist basis, so
please use the Mailing List Management link in the AdminCP to set usergroup
permissions.

2. To enable Bounced Mail handling, use the Settings link in the vBMail
AdminCP menu group, and take note of the bolded text in each option.